<?php

class DefaultController extends AdminController
{
	public function actionIndex()
	{
		$this->redirect('/admin/product');
		$this->render('index');
	}
	
	/**
	 * Set to upload images in tinymce
	 * (non-PHPdoc)
	 * @see CController::actions()
	 */
	public function actions() {
		return array(
			'mce_blank' => array(
					'class' => 'ext.tinymce.BlankAction'
			),
			'mce_upload' => array(
					'class' => 'ext.tinymce.UploadAction'
			),
			'ckfinder' => array(
					'class' => 'ext.ckeditor.CKFinderAction'
			),
		);
	}
	
	public function actionImages() {
		$this->render('images');
	}
}